﻿namespace Jim.K3Cloud;
public class K3CloudSubSystem : EntityBaseId<string>
{
    /// <summary>
    /// 编码
    /// </summary>
    public string? Number { get; set; }

    /// <summary>
    /// 模块名称
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int? Seq { get; set; }

    /// <summary>
    /// 可见性
    /// </summary>
    public bool? Visible { get; set; }

    /// <summary>
    /// 是否默认
    /// </summary>
    public bool? IsDefault { get; set; }

    /// <summary>
    /// 描述
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    public K3CloudMenuType MenuType { get; set; } = K3CloudMenuType.SubSystem;

    /// <summary>
    /// 上级
    /// </summary>
    public string? ParentId { get; set; }

    /// <summary>
    /// 显示窗口Id,子模块专用
    /// </summary>
    public string? ShowFormID { get; set; }

    /// <summary>
    /// 未知,子模块专用
    /// </summary>
    public string? MapSCCMetaFolde { get; set; }

    /// <summary>
    /// 租户Id
    /// </summary>
    public long? TenantId { get; set; }


    /// <summary>
    /// 菜单子项
    /// </summary>
    public List<K3CloudSubFunc> Children { get; set; }


    /// <summary>
    /// 模块
    /// </summary>
    public K3CloudTopClass Parent { get; set; }
}
